package com.yy.wga.resource.feign.api;

import com.yy.wga.common.core.dto.Result;
import com.yy.wga.resource.feign.request.ListResourceRequest;
import com.yy.wga.resource.feign.response.ListResourceResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 资源位配置
 *
 * @author guochao
 * @since 2024-10-31 22:48:51
 */
@FeignClient(name = "ResourceConfigFeign",
        url = "https://wga-api.xianrcj.com/api/wechat/mp/",
        path = "/api/resource/config/")
public interface ResourceConfigFeign {
    /**
     * 获取资源位信息V2
     * @param request
     * @return
     */
    @PostMapping("list")
    Result<List<ListResourceResponse>> list(@Validated @RequestBody ListResourceRequest request);
}
